package com.blb.zycommunity.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.blb.zycommunity.entity.ZyBuilding;
import com.baomidou.mybatisplus.extension.service.IService;
import com.blb.zycommunity.entity.ZyCommunity;
import com.blb.zycommunity.entity.ZyRoom;

import java.util.List;

import java.util.List;

/**
 * <p>
 * 楼栋  服务类
 * </p>
 *
 * @author chenheng
 * @since 2023-11-20
 */
public interface IZyBuildingService extends IService<ZyBuilding> {

    /**
     * 分页
     * @param page
     * @return
     */
    IPage<ZyBuilding> findBuildingPage(Page<ZyBuilding> page, String buildingName, String buildingCode);

    /**
     * 根据id查找
     * @param buildingId
     * @return
     */
    ZyBuilding findBuildingById(String buildingId);



    List<ZyBuilding> getBuildingAndUnit();

    List<ZyBuilding> findBuildingByCommunityId(String communityId);
}
